package com.aios.dao;

import com.aios.entity.IrisData;
import com.aios.entity.IrisDataExample;
import com.aios.entity.IrisDataKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface IrisDataMapper {

	int countByExample(IrisDataExample example);
    int deleteByExample(IrisDataExample example);
    int deleteByPrimaryKey(IrisDataKey key);
    int insert(IrisData record);
    int insertSelective(IrisData record);
    List<IrisData> selectByExample(IrisDataExample example);
    IrisData selectByPrimaryKey(IrisDataKey key);
    int updateByExampleSelective(@Param("record") IrisData record, @Param("example") IrisDataExample example);
    int updateByExample(@Param("record") IrisData record, @Param("example") IrisDataExample example);
    int updateByPrimaryKeySelective(IrisData record);
    int updateByPrimaryKey(IrisData record);

    @Select("SELECT * FROM iris_data WHERE IRIS_USER_ID = #{id}")
    @ResultMap("MiniResultMap")
	IrisData findByIrisUserId(@Param("id") Integer irisUserId);
    
	int insertWithoutId(IrisData record);
}